Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add deployment exception for non Jakarta WebSocket endpoints used in ServerEndpointConfig #11032

Merged
merged 5 commits into from
Dec 17, 2023

Conversation

lachlan-roberts
Copy link
Contributor

@lachlan-roberts lachlan-roberts commented Dec 7, 2023

Issue #11009

If a jakarta WebSocket endpoint does not extend jakarta.websocket.Endpoint and does not have a @ClientEndpoint or @ServerEndpoint annotation then it should throw DeploymentException.

And if for some reason the FrameHandlerFactory failed to create a FrameHandler from the websocket pojo then the CreatorNegotiator should be responsible to send an error like specified in the javadoc.

Signed-off-by: Lachlan Roberts <[email protected]>
@sbordet sbordet merged commit 62210d3 into jetty-12.0.x Dec 17, 2023
8 checks passed
@sbordet sbordet deleted the jetty-12.0.x-11009-jakartaWsBadEndpoint branch December 17, 2023 12:37
@sbordet sbordet linked an issue Dec 17, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

TimeoutException when running example in doc
2 participants